<?php
!defined('IN_FENGTOPsso') && exit('Access Denied');

class Base {
	var $mysqldb;
	
	function __construct() {
		$this->initDB();
	}
	
	function initDB() {
		$this->initMySQL();
	}
	
	function initMySQL(){
		require_once FENGTOPsso_DIR.'database/dbmysql.php';
		$this->mysqldb  =  new DB($GLOBALS['_FENGTOPsso']['db']['1']['dbhost'], $GLOBALS['_FENGTOPsso']['db']['1']['dbuser'], $GLOBALS['_FENGTOPsso']['db']['1']['dbpw'], $GLOBALS['_FENGTOPsso']['db']['1']['dbname']);
	
//echo $this->mysqldb->GetError();
//exit;
	}
	
//	function __destruct()
//	{
//		$this->mysqldb->Destroy();
//	}

}
?>